﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using System.Data;
using BusinessEntities;

namespace BusinessLogicLayer
{
    public class TiepNhanBN_Manager
    {
        private TiepNhanBN_Adapter tiepnhan = new TiepNhanBN_Adapter();

        public DataTable TiepNhanBN_TrongNgay_All()
        {
            return tiepnhan.TiepNhanBN_TrongNgay_All();
        }

        public DataTable TiepNhanBN_All()
        {
            return tiepnhan.TiepNhanBN_All();
        }

        public DataTable PhongKham_All()
        {
            return tiepnhan.PhongKham_All();
        }

        public DataTable DoiTuong_All()
        {
            return tiepnhan.DoiTuong_All();
        }

        public DataTable PhongKham_HienTrang()
        {
            return tiepnhan.PhongKham_HienTrang();
        }

        public int TiepNhanBN_Them(TiepNhanBN_Info info)
        {
            return tiepnhan.TiepNhanBN_Them(info);
        }

        public int TiepNhanBN_CapNhat(TiepNhanBN_Info info)
        {
            return tiepnhan.TiepNhanBN_CapNhat(info);
        }

        public int PhongKhamBN_CapNhatSL(string PhongKham, int sl)
        {
            return tiepnhan.PhongKhamBN_CapNhatSL(PhongKham, sl);
        }

        public int TiepNhanBN_Xoa(int MaBN)
        {
            return tiepnhan.TiepNhanBN_Xoa(MaBN);
        }

        public DataTable PhongKham_TimTheoPhongKham(string PhongKham)
        {
            return tiepnhan.PhongKham_TimTheoPhongKham(PhongKham);
        }

        public DataTable TiepNhanBN_TimTheoMaBN(string MaBN)
        {
            return tiepnhan.TiepNhanBN_TimTheoMaBN(MaBN);
        }

        public int TiepNhanBN_CapNhat_Kham(int MaBN, string Kham)
        {
            return tiepnhan.TiepNhanBN_CapNhat_Kham(MaBN, Kham);
        }

        public DataTable TiepNhanBN_LayHanCuoiCung()
        {
            return tiepnhan.TiepNhanBN_LayHanCuoiCung();
        }

        public DataTable PhongKham_TongBNCho()
        {
            return tiepnhan.PhongKham_TongBNCho();
        }

        public DataTable TiepNhanBN_TimDanToc(string DanToc)
        {
            return tiepnhan.TiepNhanBN_TimDanToc(DanToc);
        }

        public DataTable TiepNhanBN_TimDoiTuong(string DoiTuong)
        {
            return tiepnhan.TiepNhanBN_TimDoiTuong(DoiTuong);
        }

        public DataTable TiepNhanBN_TimTheoDiaChi(string DiaChi)
        {
            return tiepnhan.TiepNhanBN_TimTheoDiaChi(DiaChi);
        }

        public DataTable TiepNhanBN_TimTheoHoTenBN(string HoTenBN)
        {
            return tiepnhan.TiepNhanBN_TimTheoHoTenBN(HoTenBN);
        }

        public DataTable TiepNhanBN_TimTheoNamNhapVien(DateTime NgayNhapVien)
        {
            return tiepnhan.TiepNhanBN_TimTheoNamNhapVien(NgayNhapVien);
        }

        public DataTable TiepNhanBN_TimTheoNgayNhapVien(DateTime NgayNhapVien)
        {
            return tiepnhan.TiepNhanBN_TimTheoNgayNhapVien(NgayNhapVien);
        }

        public DataTable TiepNhanBN_TimTheoNhomTuoi(int t1, int t2)
        {
            return tiepnhan.TiepNhanBN_TimTheoNhomTuoi(t1, t2);
        }

        public DataTable TiepNhanBN_TimTheoPhongKham(string PhongKham)
        {
            return tiepnhan.TiepNhanBN_TimTheoPhongKham(PhongKham);
        }

        public DataTable TiepNhanBN_TimTheoThangNhapVien(DateTime NgayNhapVien)
        {
            return tiepnhan.TiepNhanBN_TimTheoThangNhapVien(NgayNhapVien);
        }
    }
}
